package com.engine4cloud.tdf.common.core.constant.enums;

import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import lombok.Getter;

import java.io.Serializable;

/**
 * 普通审批动作普通流程节点
 */
@Getter
public enum NormalAuditActionStatusEnum implements Serializable {
    CREATE("CREATE", "创建", "待审核"),

    /**
     * 所审核
     */
    VILLAGE_AUDIT("VILLAGE_AUDIT", "审核", "待审批"),

    /**
     * 所拒绝流程结束
     */
    REFUSE("REFUSE", "拒绝", "所拒绝"),

    /**
     * 审批通过流程结束
     */
    AUTHORIZE("AUTHORIZE", "审批", "已结束"),

    /**
     * 县局拒绝流程结束
     */
    REJECT("REJECT", "拒绝", "局拒绝");

    @Enumerated(EnumType.STRING)
    private String type;
    private String desc;
    private String status;

    NormalAuditActionStatusEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    NormalAuditActionStatusEnum(String type, String desc, String status) {
        this.type = type;
        this.desc = desc;
        this.status = status;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
